﻿@using Seal.Model;
@{
    ReportViewTemplate Template = Model;
    Template.Description = "Show a model as a detailed record.\r\nThis view works for a model result having a single record.";

    //If true, the view can be configured for a report model
    Template.ForReportModel = true;

    //Parameters for this template
    Template.Parameters.Add(new Parameter() { Name = "modeldetail_class", DisplayName = "Model: CSS Class", Description = "CSS class attribute of the main model DIV.", Enums = new string[] { "alert alert-info", "alert alert-success" }, UseOnlyEnumValues = false });
    Template.Parameters.Add(new Parameter() { Name = "modeldetail_css", Value = "margin-top:5px;", DisplayName = "Model: CSS Style", Description = "CSS style attribute of the main model DIV.", Enums = new string[] { "margin:10px;", "padding:10px;", "margin-top:5px;border:solid 1px grey;border-radius:5px;" }, UseOnlyEnumValues = false });
    Template.Parameters.Add(new Parameter() { Name = "pagetable_css", Value = "", DisplayName = "Page table: CSS Style", Description = "CSS style attribute of the Page table.", Enums = new string[] { "width:600px;", "padding:10px;", "margin-top:5px;border:solid 1px grey;border-radius:5px;" }, UseOnlyEnumValues = false });
    Template.Parameters.Add(new Parameter() { Name = "datatable_css", Value = "", DisplayName = "Data table: CSS Style", Description = "CSS style attribute of the Data table.", Enums = new string[] { "width:600px;", "padding:10px;", "margin-top:5px;border:solid 1px grey;border-radius:5px;" }, UseOnlyEnumValues = false });

    //Allowed template parent names
    Template.ParentNames = new List<string>() { "Report", "Tab Page", "Container", "Container Grid Flex", "Widget" };
}
